package com.cody.dao;

import com.cody.entity.Passage;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author Cody
 * @date 2021/4/8 - 15:05
 */
public interface PassageDao {
    List<Passage> queryAllPassage();

    List<Passage> queryCommentByKeyword(@Param("keyword") String keyword);

    Passage querySinglePassage(@Param("passageId") Integer passageId);

    boolean insertPassage(@Param("Passage") Passage Passage);

    boolean updPassageInfo(@Param("passage") Passage Passage);

    boolean delPassageByPassageId(@Param("passageId") Integer passageId);
}
